package LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86138
 * Date: 2024-07-25
 * Time: 17:32
 */
public class Test {
    public static void main(String[] args) {
        LinkedList list = new LinkedList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(3);
        list.addLast(4);
        list.addLast(5);

        list.addIndex(3,99);
        list.addIndex(0,22);
        list.addIndex(7,0);

        list.display();
    }












    public static void main1(String[] args) {
        MyLinkList node = new MyLinkList();
        node.addFirst(1);
        node.addFirst(2);
        node.addFirst(3);
        node.addFirst(4);
        node.addFirst(3);
        node.addFirst(3);
        //node.display();
        node.addLast(99);
        //node.display();
        node.addIndex(3,66);
        //node.display();
        node.remove(1);
        //node.display();
        node.removeAllKey(3);
        node.display();
    }
}
